package com.zy.stock.mapper;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.zy.stock.domain.StockTranscation;
import com.zy.stock.dto.StockTranscationDto;
import com.zy.stock.dto.UserStockRlProfitDto;

public interface StockTranscationMapper {
	
	public Integer save(StockTranscation obj)throws Exception;

	public List<StockTranscation> findByCase(StockTranscationDto obj);

	public Integer getCount(StockTranscationDto obj);
	
	public void deleteById(Integer id);

	public void update(StockTranscation stock);

	public StockTranscation findById(Integer id);
	
	public void ignoreYesterday(String status);
	
	public List<UserStockRlProfitDto> findProfit(@Param("userId")Integer userId,@Param("year")String year);
}	
